From 345c934993ff86221062c997730450869a25a316 Mon Sep 17 00:00:00 2001 From: "cl349@firebug.cl.cam.ac.uk" Date: Thu, 18 Aug 2005 19:06:51 +0000 Subject: [PATCH] Get device when we find it - fixes refcount leak and is correct. Signed-off-by: Christian Limpach --- linux-2.6-xen-sparse/drivers/xen/xenbus/xenbus_probe.c | 1 + 1 file changed, 1 insertion(+) diff --git a/linux-2.6-xen-sparse/drivers/xen/xenbus/xenbus_probe.c b/linux-2.6-xen-sparse/drivers/xen/xenbus/xenbus_probe.c index 3a37014c0b..cd4d3d97ef 100644 --- a/linux-2.6-xen-sparse/drivers/xen/xenbus/xenbus_probe.c +++ b/linux-2.6-xen-sparse/drivers/xen/xenbus/xenbus_probe.c @@ -242,6 +242,7 @@ static int cmp_dev(struct device *dev, void *data) if (streq(xendev->nodename, info->nodename)) { info->dev = xendev; + get_device(dev); return 1; } return 0; -- 2.30.2